﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CCApplicantDetails
/// </summary>
/// 
namespace CE.CreditCard
{
    public class CCApplicantDetails
    {
        //Personnel
        private Int64 _ccpersonnelid;
        private Int64 _ccarid;
        private string _ccsalutation;
        private string _ccfirstname;
        private string _ccsurname;
        private string _ccnameofappear;
        private string _ccnationality;
        private string _ccidtype;
        private string _ccidnumber;
        private DateTime _ccdob;
        private char _ccgender;
        private string _ccmaritalstatus;
        private Int32 _ccnoofdepent;
        private string _cchighedu;
        private string _ccemail;
        private string _ccmobileno;
        private string _cchomephone;
        private string _ccofficephone;
        private string _ccunitno;
        private string _cchomeno;
        private string _ccstreet;
        private string _cccountry;
        private string _ccpostal;
        private Int32 _ccyrsofthere;
        private string _ccemrcenyno;
        private string _ccrelation;
        private bool _ccmailing;
        private bool _ccsupplement;

        //Employment
        private Int64 _ccempid;
        private string _ccoccupation;
        private string _ccindbustype;
        private string _ccempbusname;
        private string _ccempbusnature;
        private string _ccposition;
        private Int16 _ccserviceyears;
        private Int16 _ccservicemonths;
        private string _ccempunitno;
        private string _ccemphomeno;
        private string _ccempstreetname;
        private string _ccempcountry;
        private string _ccemppostalcode;
        private float _ccanualincome;
        private bool _ccotherincome;
        private float _ccotherincomeamount;
        private string _ccotherincomesource;

        //Supplementary
        private Int64 _ccsuppid;
        private string _ccsuppsalutation;
        private string _ccsuppfirstname;
        private string _ccsuppsurname;
        private string _ccsuppnameofappear;
        private string _ccsupprelation;
        private DateTime _ccsuppdob;
        private char _ccsuppgender;
        private string _ccsuppnationality;
        private string _ccsuppidtype;
        private string _ccsuppidno;
        private string _ccsuppemail;
        private string _ccsuppmobileno;
        private string _ccsupphomephone;
        private string _ccsuppofficephone;
        private string _ccsuppunitno;
        private string _ccsupphomeno;
        private string _ccsuppstreetname;
        private string _ccsuppcountry;
        private string _ccsupppostalcode;

        public CCApplicantDetails()
        {
            //
            // TODO: Add constructor logic here
            //
            ClearFields();
        }

        //Personnel
        public Int64 CCPersonnelId
        {
            get { return _ccpersonnelid; }
            set { _ccpersonnelid = value; }
        }

        public Int64 CCARId
        {
            get { return _ccarid; }
            set { _ccarid = value; }
        }

        public string CCSalutation
        {
            get { return _ccsalutation; }
            set { _ccsalutation = value; }
        }

        public string CCFirstName
        {
            get { return _ccfirstname; }
            set { _ccfirstname = value; }
        }

        public string CCSurName
        {
            get { return _ccsurname; }
            set { _ccsurname = value; }
        }

        public string CCNameOfAppear
        {
            get { return _ccnameofappear; }
            set { _ccnameofappear = value; }
        }

        public string CCNationality
        {
            get { return _ccnationality; }
            set { _ccnationality = value; }
        }

        public DateTime CCDOB
        {
            get { return _ccdob; }
            set { _ccdob = value; }
        }

        public string CCIdType
        {
            get { return _ccidtype; }
            set { _ccidtype = value; }
        }

        public string CCIdNo
        {
            get { return _ccidnumber; }
            set { _ccidnumber = value; }
        }

        public char CCGender
        {
            get { return _ccgender; }
            set { _ccgender = value; }
        }

        public string CCMaritalStatus
        {
            get { return _ccmaritalstatus; }
            set { _ccmaritalstatus = value; }
        }

        public Int32 CCNoOfDepent
        {
            get { return _ccnoofdepent; }
            set { _ccnoofdepent = value; }
        }

        public string CCHighEdu
        {
            get { return _cchighedu; }
            set { _cchighedu = value; }
        }

        public string CCEmail
        {
            get { return _ccemail; }
            set { _ccemail = value; }
        }

        public string CCMobileNo
        {
            get { return _ccmobileno; }
            set { _ccmobileno = value; }
        }

        public string CCHomePhone
        {
            get { return _cchomephone; }
            set { _cchomephone = value; }
        }

        public string CCOfficePhone
        {
            get { return _ccofficephone; }
            set { _ccofficephone = value; }
        }

        public string CCUnitNo
        {
            get { return _ccunitno; }
            set { _ccunitno = value; }
        }

        public string CCHomeNo
        {
            get { return _cchomeno; }
            set { _cchomeno = value; }
        }

        public string CCStreetName
        {
            get { return _ccstreet; }
            set { _ccstreet = value; }
        }

        public string CCCountry
        {
            get { return _cccountry; }
            set { _cccountry = value; }
        }

        public string CCPostalCode
        {
            get { return _ccpostal; }
            set { _ccpostal = value; }
        }

        public Int32 CCYearsofThere
        {
            get { return _ccyrsofthere; }
            set { _ccyrsofthere = value; }
        }

        public string CCEmergencyNo
        {
            get { return _ccemrcenyno; }
            set { _ccemrcenyno = value; }
        }

        public string CCRelation
        {
            get { return _ccrelation; }
            set { _ccrelation = value; }
        }

        public bool CCMailing
        {
            get { return _ccmailing; }
            set { _ccmailing = value; }
        }

        public bool CCSupplementary
        {
            get { return _ccsupplement; }
            set { _ccsupplement = value; }
        }

        //Employment
        public Int64 CCEmpId
        {
            get { return _ccempid; }
            set { _ccempid = value; }
        }

        public string CCEmpOccupation
        {
            get { return _ccoccupation; }
            set { _ccoccupation = value; }
        }

        public string CCIndBusiType
        {
            get { return _ccindbustype; }
            set { _ccindbustype = value; }
        }

        public string CCEmpBusiName
        {
            get { return _ccempbusname; }
            set { _ccempbusname = value; }
        }

        public string CCEmpBusiNature
        {
            get { return _ccempbusnature; }
            set { _ccempbusnature = value; }
        }

        public string CCPosition
        {
            get { return _ccposition; }
            set { _ccposition = value; }
        }

        public Int16 CCServiceYears
        {
            get { return _ccserviceyears; }
            set { _ccserviceyears = value; }
        }

        public Int16 CCServiceMonths
        {
            get { return _ccservicemonths; }
            set { _ccservicemonths = value; }
        }

        public string CCEmpUnitNo
        {
            get { return _ccempunitno; }
            set { _ccempunitno = value; }
        }

        public string CCEmpHomeNo
        {
            get { return _ccemphomeno; }
            set { _ccemphomeno = value; }
        }

        public string CCEmpStreetName
        {
            get { return _ccempstreetname; }
            set { _ccempstreetname = value; }
        }

        public string CCEmpCountry
        {
            get { return _ccempcountry; }
            set { _ccempcountry = value; }
        }

        public string CCEmpPostalCode
        {
            get { return _ccemppostalcode; }
            set { _ccemppostalcode = value; }
        }

        public float CCAnualIncome
        {
            get { return _ccanualincome; }
            set { _ccanualincome = value; }
        }

        public bool CCOtherIncome
        {
            get { return _ccotherincome; }
            set { _ccotherincome = value; }
        }

        public float CCOtherIncomeAmt
        {
            get { return _ccotherincomeamount; }
            set { _ccotherincomeamount = value; }
        }

        public string CCOtherIncomeSource
        {
            get { return _ccotherincomesource; }
            set { _ccotherincomesource = value; }
        }

        //Supplementary
        public Int64 CCSuppId
        {
            get { return _ccsuppid; }
            set { _ccsuppid = value; }
        }

        public string CCSuppSalutation
        {
            get { return _ccsuppsalutation; }
            set { _ccsuppsalutation = value; }
        }

        public string CCSuppFirstName
        {
            get { return _ccsuppfirstname; }
            set { _ccsuppfirstname = value; }
        }

        public string CCSuppSurName
        {
            get { return _ccsuppsurname; }
            set { _ccsuppsurname = value; }
        }

        public string CCSuppNameOfAppear
        {
            get { return _ccsuppnameofappear; }
            set { _ccsuppnameofappear = value; }
        }

        public string CCSuppRelation
        {
            get { return _ccsupprelation; }
            set { _ccsupprelation = value; }
        }

        public DateTime CCSuppDOB
        {
            get { return _ccsuppdob; }
            set { _ccsuppdob = value; }
        }

        public char CCSuppGender
        {
            get { return _ccsuppgender; }
            set { _ccsuppgender = value; }
        }

        public string CCSuppNationality
        {
            get { return _ccsuppnationality; }
            set { _ccsuppnationality = value; }
        }

        public string CCSuppIdType
        {
            get { return _ccsuppidtype; }
            set { _ccsuppidtype = value; }
        }

        public string CCSuppIdNo
        {
            get { return _ccsuppidno; }
            set { _ccsuppidno = value; }
        }

        public string CCSuppEmail
        {
            get { return _ccsuppemail; }
            set { _ccsuppemail = value; }
        }

        public string CCSuppMobileNo
        {
            get { return _ccsuppmobileno; }
            set { _ccsuppmobileno = value; }
        }

        public string CCSuppHomePhone
        {
            get { return _ccsupphomephone; }
            set { _ccsupphomephone = value; }
        }

        public string CCSuppOfficePhone
        {
            get { return _ccsuppofficephone; }
            set { _ccsuppofficephone = value; }
        }

        public string CCSuppUnitNo
        {
            get { return _ccsuppunitno; }
            set { _ccsuppunitno = value; }
        }

        public string CCSuppHomeNo
        {
            get { return _ccsupphomeno; }
            set { _ccsupphomeno = value; }
        }

        public string CCSuppStreetName
        {
            get { return _ccsuppstreetname; }
            set { _ccsuppstreetname = value; }
        }

        public string CCSuppCountry
        {
            get { return _ccsuppcountry; }
            set { _ccsuppcountry = value; }
        }

        public string CCSuppPostalCode
        {
            get { return _ccsupppostalcode; }
            set { _ccsupppostalcode = value; }
        }

        public void ClearFields()
        {
            //Personnel
            _ccpersonnelid = 0;
            _ccarid = 0;
            _ccsalutation = "";
            _ccfirstname = "";
            _ccsurname = "";
            _ccnameofappear = "";
            _ccnationality = "";
            _ccdob = new DateTime();
            _ccdob = CE.Global.General.GetUTCDateTime();
            _ccidtype = "";
            _ccidnumber = "";
            _ccgender = 'N';
            _ccmaritalstatus = "";
            _ccnoofdepent = 0;
            _cchighedu = "";
            _ccemail = "";
            _ccmobileno = "";
            _cchomephone = "";
            _ccofficephone = "";
            _ccunitno = "";
            _cchomeno = "";
            _ccstreet = "";
            _cccountry = "";
            _ccpostal = "";
            _ccyrsofthere = 0;
            _ccemrcenyno = "";
            _ccrelation = "";
            _ccmailing = false;
            _ccsupplement = false;

            //Employment
            _ccempid = 0;
            _ccoccupation = "";
            _ccindbustype = "";
            _ccempbusname = "";
            _ccempbusnature = "";
            _ccposition = "";
            _ccserviceyears = -1;
            _ccservicemonths = -1;
            _ccempunitno = "";
            _ccemphomeno = "";
            _ccempstreetname = "";
            _ccempcountry = "";
            _ccemppostalcode = "";
            _ccanualincome = 0.0f;
            _ccotherincome = false;
            _ccotherincomeamount = 0.0f;
            _ccotherincomesource = "";
            
            //Supplementary
            _ccsuppid = 0;
            _ccsuppsalutation = "";
            _ccsuppfirstname = "";
            _ccsuppsurname = "";
            _ccsuppnameofappear = "";
            _ccsupprelation = "";
            _ccsuppdob = new DateTime();
            _ccsuppdob = CE.Global.General.GetUTCDateTime();
            _ccsuppgender = 'N';
            _ccsuppnationality = "";
            _ccsuppidtype = "";
            _ccsuppidno = "";
            _ccsuppemail = "";
            _ccsuppmobileno = "";
            _ccsupphomephone = "";
            _ccsuppofficephone = "";
            _ccsuppunitno = "";
            _ccsupphomeno = "";
            _ccsuppstreetname = "";
            _ccsuppcountry = "";
            _ccsupppostalcode = "";
        }

    }
}